package com.kx.center.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kx.center.entity.ScTradeDetail;
import com.kx.center.entity.TradeDetail;
import com.kx.center.entity.huiyin.MtName;
import com.kx.center.entity.huiyin.Product;
import com.kx.center.entity.huiyin.SaleOrderItems;
import com.kx.center.mappers.TradeDetailMapper;
import com.kx.center.service.TradeDetailService;

@Service
public class TradeDetailServiceImpl implements TradeDetailService {
		
	@Autowired
	private TradeDetailMapper tradeDetailMapper;

	@Override
	public void insertSaleOrderItems(SaleOrderItems saleOrderItems) {
		tradeDetailMapper.insertSaleOrderItems(saleOrderItems);
	}

	@Override
	public void insertProduct(Product product) {
		tradeDetailMapper.insertProduct(product);
	}

	@Override
	public void insertTradeDetail(TradeDetail tradeDetail) {
		tradeDetailMapper.insertTradeDetail(tradeDetail);
	}
	
	@Override
	public void updateProduct(Product product) {
		tradeDetailMapper.updateProduct(product);
	}

	@Override
	public Long saleOrderItemsMaxTime() {
		return tradeDetailMapper.saleOrderItemsMaxTime();
	}

	@Override
	public List<String> findProductIdList() {
		return tradeDetailMapper.findProductIdList();
	}

	@Override
	public List<String> findTradeDetailIdList() {
		return tradeDetailMapper.findTradeDetailIdList();
	}

	@Override
	public List<TradeDetail> findTradeDetailList() {
		return tradeDetailMapper.findTradeDetailList();
	}

	@Override
	public void insertMtOrderDetail(MtName mtName) {
		tradeDetailMapper.insertMtOrderDetail(mtName);
	}
	
	@Override
	public List<TradeDetail> findMtDetailList() {
		return tradeDetailMapper.findMtDetailList();
	}

	@Override
	public void insertScTradeDetail(ScTradeDetail scTradeDetail) {
		tradeDetailMapper.insertScTradeDetail(scTradeDetail);
	}

}